//
//  AIAddressCell.m
//  aixianfeng
//
//  Created by 李江波 on 2016/12/22.
//  Copyright © 2016年 lijiangbo. All rights reserved.
//

#import "AIAddressCell.h"
#import "AIAddressModel.h"

@interface AIAddressCell ()

@property (weak, nonatomic) IBOutlet UILabel *name;
@property (weak, nonatomic) IBOutlet UILabel *telphone;
@property (weak, nonatomic) IBOutlet UILabel *area;
@property (weak, nonatomic) IBOutlet UILabel *address;


@end

@implementation AIAddressCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

-(void)setModel:(AIAddressModel *)model{

    _model = model;
    self.name.text = model.name;
    self.telphone.text = [model.telphoneNum stringByReplacingOccurrencesOfString:@" " withString:@"-"];
    self.area.text = model.area;
    self.address.text = model.address;
}


- (IBAction)actionEdit:(UIButton *)sender {
    
    if (self.editClickBlock) {
        
        self.editClickBlock(sender);
    }
    
}


@end
